using System;
using System.Collections.Generic;
using System.Text;

namespace Fieldbook.Entities
{
	public class Field
	{
		private long? fieldid;
		private string cataster;
		private long? ownerid;
		private int measureunitid;
		private Decimal area;
        private FieldState? fieldStateID;
        private int? fieldMapID;
        private short? fieldMapX;
        private short? fieldMapY;

		public long? Fieldid
		{
			get { return fieldid; }
			set { this.fieldid = value; }
		}
		public string Cataster
		{
			get { return cataster; }
			set { this.cataster = value; }
		}
		public long? Ownerid
		{
			get { return ownerid; }
			set { this.ownerid = value; }
		}
		public int Measureunitid
		{
			get { return measureunitid; }
			set { this.measureunitid = value; }
		}
		public Decimal Area
		{
			get { return area; }
			set { this.area = value; }
		}

        public FieldState? FieldStateID
        {
            get { return fieldStateID; }
            set { fieldStateID = value; }
        }

        public int? FieldMapID
        {
            get { return fieldMapID; }
            set { fieldMapID = value; }
        }

        public short? FieldMapX
        {
            get { return fieldMapX; }
            set { fieldMapX = value; }
        }

        public short? FieldMapY
        {
            get { return fieldMapY; }
            set { fieldMapY = value; }
        }

        public enum FieldState : byte 
        {
            Uzorano,
            Podrljano,
            Ospartano,
            Posejano,
            Oprskano,
            Obrano
        }
	}
}
